package com.network.mapper;


import com.network.pojo.Phone;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PhoneMapper {


    /**
     * 查询某个用户的所有号码
     * @param uid
     * @return
     */
    List<Phone> findPhoneNumberByUid(@Param("uid") int uid);


    /**
     * 删除某个用户的所有号码
     * @param uid
     */
    void deletePhoneNumberByUid(@Param("uid") int uid);


    /**
     * 批量插入电话号码
     * @param phones
     */
    void insert(@Param("phones") List<Phone> phones,@Param("uid") int uid);
}
